﻿using HiSport.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HiSport.Core.Entity.HiSportEntity.Bas
{


    /// <summary>
    /// 计费规则
    /// </summary>
    [SugarTable(null, "计费规则")]
    public class BasBillingRule: EntityBaseData
    {
        [SugarColumn(ColumnDescription = "规则名称", Length = 20, DefaultValue = "", IsNullable = false)]
        [Required, MaxLength(20)]
        public string RuleName { get; set; }

        /// <summary>
        /// 场馆iD
        /// </summary>
        [SugarColumn(ColumnDescription = "场馆iD", DefaultValue = "0", IsNullable = false)]
        public long VenueId { get; set; }

        [SugarColumn(ColumnDescription = "排序",  DefaultValue = "0", IsNullable = false)]
        public int Sort { get; set; }

        /// <summary>
        /// 状态（2-停用；1-启用）
        /// </summary>
        public StatusEnum Status { get; set; }
    }
}
